package com.gitee.chili.leisure.domain;

import com.gitee.chili.leisure.base.GenerateId;
import com.gitee.chili.leisure.enums.Status;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * GamesMode
 *
 * @author week solider
 * @since 2020.09.02
 */
@Data
@Entity
@Accessors(chain = true)
@Table(name = "leisure_mode")
@EqualsAndHashCode(callSuper = true)
public class GamesMode extends GenerateId<Long> {

    @Column(name = "parent_id")
    private Long parentId;

    @Column(name = "game_name")
    private String gameName;

    @Column(name = "foreign_name")
    private String foreignName;

    private Status status;

    private Long creator;

    public GamesMode() {
    }
}
